package util;

import gui.image.ImageList;
import org.ini4j.Profile.Section;

/**
 *
 * @author Quân
 */
public class MyIniSection {

    public static final String NodeName = "NodeName";
    public static final String NodePath = "NodePath";
    private Section section;
    private ImageList imageList;

    public ImageList getImageList() {
        return imageList;
    }

    public void setImageList(ImageList imageList) {
        this.imageList = imageList;
    }

    public Section getSection() {
        return section;
    }

    public void setSection(Section section) {
        this.section = section;
    }

    public MyIniSection(Section section, ImageList imageList) {
        this.section = section;
        this.imageList = imageList;
        imageList.setSection(this);
    }

    @Override
    public String toString() {
        return section.get(NodeName);
    }
}
